package com.wuzhiming.istudy.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: User
 * @Description: 用户实体
 * @Author:zhimingw
 * @Version 1.0
 * @since 2022/2/25 18:59
 */
@Data
public class User implements Serializable {

    private static final long serialVersionUID = 366461946442962822L;
    /**
     * 主键ID
     */
    private Integer id;

    /**
     * 绑定QQ登录的ID
     */
    private String openId;

    /**
     * 头像地址
     */
    private String img;

    /**
     * 作者昵称
     */
    private String name;

    /**
     * 登录密码
     */
    private String password;

    /**
     * 加密盐
     */
    private String salt;

    /**
     * 性别：男、女、保密
     */
    private String sex;

    /**
     * 出生年月日
     */
    private Date birthday;

    /**
     * 地区
     */
    private String address;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * QQ号码
     */
    private String qq;

    /**
     * 微信号图片地址
     */
    private String wechat;

    /**
     * 微信公众号图片地址
     */
    private String publicWechat;

    /**
     * 职业
     */
    private String career;

    /**
     * 个人说明
     */
    private String info;

    /**
     * 最近登录
     */
    private Date recentLogin;

    private Integer status;

    public User() {
    }

    public User(String name,String password) {
        this.name = name;
        this.password = password;
    }

    public User(String name,String password,Integer status) {
        this.name = name;
        this.password = password;
        this.status = status;
    }
}
